JavaScript
{dialog.object}progressBarSetProgress Method
Syntax
progressBarSetProgress(id, pct)
Arguments
- idstring
The name of a placeholder control where the progress bar is shown.
- pctnumber
The percentage complete. Specify a value of 0 to display an empty progress bar and 100 to display a full progress bar.
Description
Updates the progress bar percentage.
Discussion
The progressBarSetProgress() method updates the progress indicator. The pct argument defines how much of the progress bar should be filled.
You must first call {dialog.object}.progressBarShow() to create and display the progress bar.
Example
// Updating a progress bar in a Placeholder control var id = 'PLACEHOLDER_1'; var pct = 50; {dialog.object}.progressBarSetProgress(id,pct);